package com.blazer.b;

import java.util.Scanner;

public class arrayscsy {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        int[] arr=new int[3];
        arr[0]=10;
        arr[1]=30;
        arr[2]=34;

        while (true){
            int flag=0;
            int sc=scanner.nextInt();

            for (int i=0;i<arr.length;i++){


                if(arr[i]==sc){
                    System.out.println("当前索引"+i);
                    flag++;
                   }
            }
            if(flag==0){
                System.out.println("-1");
            }
        }

    }
}
